package com.ylb.rent.entity;

import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * 国家对象 country
 * 
 * @author ylb
 * @date 2023-06-29
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Document(indexName = "country")
public class Country
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 国家名 */

    private String countryName;

    /** 货币符号 */

    private String currency;

    /** $column.columnComment */

    private Long isDelete;

    /** 城市信息 */
    private List<City> cityList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCountryName(String countryName) 
    {
        this.countryName = countryName;
    }

    public String getCountryName() 
    {
        return countryName;
    }
    public void setCurrency(String currency) 
    {
        this.currency = currency;
    }

    public String getCurrency() 
    {
        return currency;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }

    public List<City> getCityList()
    {
        return cityList;
    }

    public void setCityList(List<City> cityList)
    {
        this.cityList = cityList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("countryName", getCountryName())
            .append("currency", getCurrency())
            .append("isDelete", getIsDelete())
            .append("cityList", getCityList())
            .toString();
    }
}
